package com.htthorizon.common.core.utils;

import com.github.pagehelper.IPage;

import java.util.List;

/**
 * @author Brilliant
 */
public class Page<T> implements IPage {

    private Integer pageNum;
    private Integer pageSize;

    private List<T> records;

    private Integer total;

    public Page() {
    }
    public Page(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @Override
    public Integer getPageNum() {
        return this.pageNum;
    }

    @Override
    public Integer getPageSize() {
        return this.pageSize;
    }

    @Override
    public String getOrderBy() {
        return null;
    }
}
